<?php
 
class CronStatusController extends Controller{

    public function index(){

        $curr_page = (int)$this->input()->post('pageNum',1);
        $per_page  = (int)$this->input()->post('numPerPage',30);
        $cate_name = $this->input()->post('cate_name');
        $action = $this->input()->post('action');
        $filter = array();

        if($cate_name){
            $filter['cate_name'] = $cate_name;
        }

        if($action){
            $filter['action'] = $action;
        }

        $list = Model::getInstance('cronstatus')->getCateList($curr_page,$per_page,$filter);
        $data = array(
            'list'=>$list,
        );
        Template::show('cronstatus/cronstatus.php',$data);

    }
}